package com.example.child_protection.dto.request.add;

import com.example.child_protection.dto.base.BaseRequestDTO;
import com.example.child_protection.enums.BooleanEnums;
import com.example.child_protection.enums.CaseTypeEnums;
import io.swagger.annotations.ApiParam;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * 缺点信息添加请求DTO
 * @date 2018-11-1
 * @author Biz
 */
@Getter
@Setter
public class SystemShortcomingInsertRequestDTO extends BaseRequestDTO {

    /**
     * 名称
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(value = "名称",required = true)
    private String name;

    /**
     * 是否统计
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(value = "名称",required = true)
    private BooleanEnums isCount;

    /**
     * 统计月龄起
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(value = "名称",required = true)
    private Integer beginMonth;

    /**
     * 统计月龄止
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(value = "名称",required = true)
    private Integer endMonth;

    /**
     * 是否指导
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(value = "名称",required = true)
    private BooleanEnums isGuide;

    /**
     * 是否专案
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(value = "名称",required = true)
    private BooleanEnums isCase;

    /**
     * 专案分类
     *
     * @mbggenerated
     */
    @ApiParam(value = "专案分类",required = false)
    private CaseTypeEnums caseType;

    /**
     * 状态(是否前端展示，备用字段)
     *
     * @mbggenerated
     */
    @ApiParam(value = "状态(是否前端展示，备用字段)",hidden = true)
    private BooleanEnums states = BooleanEnums.T;
    public void valid(){
        super.validate( this, new Class[0] );
    }
    public boolean isValidGid() {

        return false;
    }

}
